< previous page page_319 next page >

Page 319
12181-0319a.gif
Figure 12.3.
Adding a command to the database connection.
Note
When adding connections or commands, you must display the properties dialogit will not be displayed automatically.

Because you can have more than one connection defined in the Data Environment, you must now select the connection that the command will use to access the database. You then have a choice between using a table, view, or stored procedure directly from the database or building your own SQL query. If you choose to use a database object, select the object type and then select the object name.
Building the SQL Command
You should use a table or predefined view from your database unless your application requires a more complex query. If you need a complex query, select SQL Statement on the General tab and hit the SQL Builder button, which will display the SQL Builder interface as shown in Figure 12.4.

 
< previous page page_319 next page >

If you like this book, buy it!